import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        {//默认预约：打包时记得改
          path: '/',
          component: function(resolve) {
            require(['../views/booking/index.vue'], resolve);
          }
        },
        {
          path: '/publish',
          component: function(resolve) {
            require(['../views/booking/publish.vue'], resolve);
          }
        },
        {
          path: '/login',
          component: function(resolve) {
            require(['../views/booking/login.vue'], resolve);
          }
        },
        {
          path: '/detail',
          component: function(resolve) {
            require(['../views/booking/detail.vue'], resolve);
          }
        },
        {
          path: '/member',
          component: function(resolve) {
            require(['../views/booking/member.vue'], resolve);
          }
        // },
        // {
        //   path: '/jifen',
        //   component: function (resolve) {
        //     require(['../views/booking/jifen.vue'], resolve);
        //   }
        }
      ]
})
